package com.homedo.async.mysql.support.convertor.forfieldval;

/**
 * @author jgshun
 * @date 2020/1/20 11:51 AM
 */
public class ShortResultFieldValConvertor implements ResultFieldValConvertorI {
    private static final ShortResultFieldValConvertor INSTANCE = new ShortResultFieldValConvertor();

    public static ShortResultFieldValConvertor getInstance() {
        return INSTANCE;
    }

    @Override
    public Short convertor(Object columnVal) {
        return Short.valueOf(columnVal.toString());
    }

}
